package aaa.question.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import aaa.common.annotation.Excel;
import aaa.common.core.domain.BaseEntity;

/**
 * 选项管理对象 ques_option_bank
 * 
 * @author xyy
 * @date 2025-01-05
 */
public class QuesOptionBank extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选项id */
    private Long optionId;

    /** 题目id */
    @Excel(name = "题目id")
    private Long questionId;

    /** 选项 */
    @Excel(name = "选项")
    private String optionChar;

    /** 是否正确 */
    @Excel(name = "是否正确")
    private Integer isCorrect;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionText;

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setOptionChar(String optionChar) 
    {
        this.optionChar = optionChar;
    }

    public String getOptionChar() 
    {
        return optionChar;
    }
    public void setIsCorrect(Integer isCorrect) 
    {
        this.isCorrect = isCorrect;
    }

    public Integer getIsCorrect() 
    {
        return isCorrect;
    }
    public void setOptionText(String optionText) 
    {
        this.optionText = optionText;
    }

    public String getOptionText() 
    {
        return optionText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("questionId", getQuestionId())
            .append("optionChar", getOptionChar())
            .append("isCorrect", getIsCorrect())
            .append("optionText", getOptionText())
            .toString();
    }
}
